package io.dogstudio.apt;

import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

	@ViewBinding.AutoWire(R.id.tvTitle)
	public TextView tvTitle;

	TextView tvTest;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		new ViewBinding().bind(this);
		//ViewInject.bind(this);
		Log.e("Test", "tvTitle find:" + (tvTitle != null));
		if (tvTitle != null) {
			Log.e("Test", "tvTitle content:" + tvTitle.getText().toString());
			tvTitle.setText("View Inject success");
			tvTitle.setTextSize(32);
		}
	}


}